/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 11:19:02
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-03 10:24:26
 * @FilePath: \cxl-driving-training\src\views\drivingSchoolManagement\drivingSchool\list\config.ts
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/school/manage/add'],
            className: '',
            name: '新增驾校',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        { key: 'fullName', type: 'text', name: '驾校全称', placeholder: '' }
        // { key: 'shortName', type: 'text', name: '驾校简称', placeholder: '' },
        // {
        //     key: 'disable',
        //     type: 'select',
        //     name: '状态',
        //     modelValue: '-1',
        //     options: [...disabledOptions]
        // }
    ],
    permission: ['GET:/api/system/school/manage/getPageList'],
    table: {
        operationWidth: '82px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: ['POST:/api/system/school/manage/edit'],
                className: '',
                name: '编辑'
            }
            // {
            //     type: 'look',
            //     visible: true,
            //     permission: [],
            //     className: '',
            //     name: '详情'
            // }
        ],

        propName: {
            fullName: '驾校全称',
            qualification: '驾校资质',
            city: '所在城市',
            status: '状态',
            createBy: '操作人',
            updateTime: '操作时间'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: ['POST:/api/system/school/manage/updateDisable'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
